<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="heads(title,links,styles,scripts)">
    <meta charset="UTF-8">
    <title th:replace="${title}">公共页面</title>
    <link href="/css/common.css" rel="stylesheet">
    <th:block th:replace="${links}"/>
    <th:block th:replace="${styles}"/>
    <th:block th:replace="${scripts}"/>
</head>
<body>
    <!--公共的头部模版的定义-->
    <div class="top" th:fragment="top">
        <div style="text-align: center">SpringBoot练习项目</div>
        <div style="text-align: right">
            <span>张三</span>
            <a href="/exit" style="margin: 0px 30px">退出</a>
        </div>
    </div>

    <!--公共的菜单模版的定义-->
    <div class="left" th:fragment="left">
        <div style="margin: 10px"><a href="/dept/list">部门管理</a></div>
    </div>

    <!--公共的尾部模版的定义-->
    <div class="footer" th:fragment="footer">220软件班</div>
</body>
</html>